package com.majie.lifecircle;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
	@Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
	public MyBean myBean( ) {
		return new MyBean("张三");
	}
}